<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <title>VIP</title>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/9mu_test/Public/js/html5.js"></script>
    <script type="text/javascript" src="/9mu_test/Public/js/respond.min.js"></script>
    <script type="text/javascript" src="/9mu_test/Public/js/PIE_IE678.js"></script>
    <![endif]-->
    <link href="/9mu_test/Public/css/core.css" rel="stylesheet" type="text/css" />
    <link href="/9mu_test/Public/css/admin.css" rel="stylesheet" type="text/css" />
    <link href="/9mu_test/Public/css/font-awesome.min.css" rel="stylesheet">
    <link href="/9mu_test/Public/lib/icheck/icheck.css" rel="stylesheet" />
    <link href="/9mu_test/Public/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet">
    <!--[if IE 7]>
    <link rel="stylesheet" href="/9mu_test/Public/css/font-awesome-ie7.min.css">
    <![endif]-->
    <script type="text/javascript" src="/9mu_test/Public/js/jquery.min.js"></script>
    <script type="text/javascript" src="/9mu_test/Public/js/core.js"></script>
    <script type="text/javascript" src="/9mu_test/Public/js/admin.js"></script>
    <script type="text/javascript" src="/9mu_test/Public/lib/icheck/jquery.icheck.min.js"></script>
</head>

<body>
    <!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <title>welcome</title>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/9mu_test/Public/js/html5.js"></script>
    <script type="text/javascript" src="/9mu_test/Public/js/respond.min.js"></script>
    <script type="text/javascript" src="/9mu_test/Public/js/PIE_IE678.js"></script>
    <![endif]-->
    <link href="/9mu_test/Public/css/core.css" rel="stylesheet" type="text/css" />
    <link href="/9mu_test/Public/css/admin.css" rel="stylesheet" type="text/css" />
    <link href="/9mu_test/Public/css/font-awesome.min.css" rel="stylesheet">
    <!--[if IE 7]>
    <link rel="stylesheet" href="/9mu_test/Public/css/font-awesome-ie7.min.css">
    <![endif]-->
    <script type="text/javascript" src="/9mu_test/Public/js/jquery.min.js"></script>
    <script type="text/javascript" src="/9mu_test/Public/js/core.js"></script>
    <script type="text/javascript" src="/9mu_test/Public/js/admin.js"></script>
    <script type="text/javascript" src="/9mu_test/Public/lib/layer/layer.js"></script>
    <style>
    .notice {
        margin: 0 auto;
        text-align: center
    }
    .notice-icon {
        text-align: center; 
        font-size: 100px; 
    }
    .success {
        color: #5eb95e;
    }
    .error{
        color: #dd514c;
    }
    @media (max-width:401px) {
    .notice-icon{
        font-size: 35px;
    }
    h3 {
        font-size: 18px;
    }
    }
    </style>

</head>
<body>

<?php if(isset($message)): ?><div class="notice">
    <p class="notice-icon success"><i class="icon-ok-sign" ></i></p>
    <h3><?php echo($message); ?></h3>
    <input type="hidden" id="href" value="<?php echo($jumpUrl); ?>">
    <p >窗口自动关闭，等待时间：<b id="wait"><?php echo($waitSecond); ?></b></p>
</div>
<?php else: ?>
<div class="notice">
    <p class="notice-icon error"><i class="icon-remove-sign" ></i></p>
    <h3><?php echo($error); ?></h3>
    <input type="hidden" id="href" value="<?php echo($jumpUrl); ?>">
    <p>窗口自动关闭，等待时间：<b id="wait"><?php echo($waitSecond); ?></b></p>
</div><?php endif; ?>
<script>
$(function(){
    var wait = $('#wait').get(0);
    //var wait = document.getElementById('wait');
    //var href = document.getElementById('href').value;
    var href = '<?php echo($jumpUrl); ?>';   
    var fobj = $('iframe[id^="layui"]',window.parent.document);
   
    var interval = setInterval(function(){
        var time = --wait.innerHTML;
        if(time <= 0) {
            //location.href = href;
            if(fobj.length > 0 ){
                window.parent.location.reload();
                layer_close();
                
            }else{
                window.location.href = href;
            }
            clearInterval(interval);
        };
    }, 1000);

});
</script>
</body>
</html>
</body>

</html>